package com.oop.Demo12;

import com.oop.Demo06.A;

public class test {
    public static void main(String[] args) {

        new Apple().eat();

        UserService userService = new UserService() {
            @Override
            public void Hello() {
            }
        };
    }
}

class Apple {
    public void eat() {
        System.out.println("eat........");
    }
}

interface UserService {
    void Hello();
}
